package com.dawn.module.mp.controller.admin.msgtemplate.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 模板消息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MsgTemplateRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25432")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "appid", requiredMode = Schema.RequiredMode.REQUIRED, example = "12845")
    @ExcelProperty("appid")
    private String appid;

    @Schema(description = "微信公众号ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1930")
    @ExcelProperty("微信公众号ID")
    private Long accountId;

    @Schema(description = "公众号模板ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8236")
    @ExcelProperty("公众号模板ID")
    private String templateId;

    @Schema(description = "模版名称", example = "赵六")
    @ExcelProperty("模版名称")
    private String name;

    @Schema(description = "标题")
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "模板内容")
    @ExcelProperty("模板内容")
    private String content;

    @Schema(description = "消息内容")
    @ExcelProperty("消息内容")
    private JSONArray data;

    @Schema(description = "链接", example = "https://www.ynzykj.net")
    @ExcelProperty("链接")
    private String url;

    @Schema(description = "小程序信息")
    @ExcelProperty("小程序信息")
    private JSONObject miniprogram;

    @Schema(description = "是否有效", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("是否有效")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
